class ParentMgrController {

    def index = { }
    // 开启和停用家长登录
    def goswitch = {
        if (params.id) {
            def parent = Parent.get(params.id)
            parent.enabled = !parent.enabled
            parent.save(flush: true)
        }
        redirect(action: "list" , controller: "parent")
    }
}
